﻿package mortal.game.view.ThanksGiving.command
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class ThanksGivingCommand extends BroadCastCall
    {

        public function ThanksGivingCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_4:SMergeRechargeActiveRewardInfo = null;
            var _loc_2:* = param1.messageHead.command;
            var _loc_3:* = param1.messageBase;
            switch(_loc_2)
            {
                case EGateCommand._ECmdGateThansGivingConsumReward:
                {
                    _loc_4 = param1.messageBase as SMergeRechargeActiveRewardInfo;
                    Cache.instance.thanksGiving.consumInfo = _loc_4;
                    NetDispatcher.dispatchCmd(ServerCommand.ThanksGivingConsumInfo, null);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
